package factorymanagement;

import java.awt.BorderLayout;
import javax.swing.*;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

public class Achievement extends JFrame {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    Object[] columnTitle = { "被评测人", "评测经理", "评测成绩" };
    Object[][] tableDate = { 
            new Object[] { "0001", "0002", "89.0" },
            new Object[] { "0003", "0002", "77.0" }, 
            new Object[] { "0004", "0002", "23.0" }
     };
    private JTable tb1 =  new JTable(tableDate, columnTitle);
    private JLabel lab1 =  new JLabel("测评成绩如下：");
    private JScrollPane tp1 = new JScrollPane();

    public Achievement()
    {
        this.setSize(600, 400);
        this.setTitle("测评成绩");
        this.setLocation(200, 200);
        //this.setLayout(new FlowLayout(FlowLayout.LEFT, 10,10));
        this.setLayout(new BorderLayout());
        //this.add(new JScrollPane(tb1));
        //this.setLayout(null);
        this.add(lab1,BorderLayout.NORTH);
        this.add(new JScrollPane(tb1),BorderLayout.CENTER);
        this.setVisible(true);
    }

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        new Achievement();

    }

}